package com.qinggeng.framework.config;

import com.qinggeng.common.constant.Constants;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class StaticConfig {

    @Value("${spring.profiles.active}")
    private String active;

    @Bean
    public void initStatic(){
        Constants.setDEBUG(active);
    }
}
